#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtQml>
#include "colormarker.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    qmlRegisterType<ColorMarker>("cn.pset.ColorMarker", 1, 0, "ColorMarker");

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/colorMarker.qml")));
    //engine.rootContext()->setContextProperty("colorMarker", new ColorMarker);
    return app.exec();
}
